using System;
using System.Collections.Generic;
using System.Text;
using System.Data;
using System.Configuration;
using DataServis;

namespace DataServis
{
    public class VeriServis
    {
        public static Providers mVeritabaniSaglayici = Providers.SQLClient;

        private static string cnStr = "";

        static VeriServis()
        {
            if (ConfigurationManager.ConnectionStrings.Count > 0)
            {
                cnStr = ConfigurationManager.ConnectionStrings[ConfigurationManager.AppSettings["DBProvider"] + ConfigurationManager.AppSettings["DBMode"]].ConnectionString;
            }
        }

        public static VeriArabirim VeriTabaniObjesiGetir()
        {
            return VeriTabaniObjesiGetir(false);
        }

        public static VeriArabirim VeriTabaniObjesiGetir(Boolean bTransactionGerekliMi)
        {
            VeriArabirim oData = null;
            oData = new VeriSQL(cnStr, bTransactionGerekliMi);

            return oData;
        }

        public static VeriArabirim VeriTabaniObjesiGetir(Boolean bTransactionGerekliMi, string strCon)
        {
            VeriArabirim oData = null;
            oData = new VeriSQL(strCon, bTransactionGerekliMi);

            return oData;
        }


        public static IDbDataParameter DBParametreGetir(DataColumn dataColumn, int EgitimID)
        {
            throw new NotImplementedException();
        }
    }
}
